import request from "../http";

//获取菜谱详情接口
// 接口地址： recipe/detail/:recipeid
export function getRecipeDetail(params){
    return request({
        url:`/recipe/detail/${params.recipeid}`,
        method:"get",       
    })
}

//获取菜谱评论接口
// 接口地址： recipe/flatcomments/:recipeid/:offset/:limit
export function getFlatcomments(params){
    return request({
        url:`/recipe/flatcomments/${params.recipeid}/${params.offset}/${params.limit}`,
        method:"get",       
    })
}